/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: #333;
    background-color: #f5f5f5;
}

a {
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
}

ul, ol {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}

/* 通用样式 */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.btn {
    display: inline-block;
    padding: 8px 20px;
    background-color: #ff6b81;
    color: #fff;
    border-radius: 4px;
    font-weight: bold;
    text-align: center;
}

.btn:hover {
    background-color: #ff4757;
}

.section {
    padding: 40px 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 2px solid #ff6b81;
    padding-bottom: 10px;
}

.section-header h1, .section-header h2 {
    font-size: 24px;
    color: #333;
    position: relative;
    padding-left: 15px;
}

.section-header h1:before, .section-header h2:before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 20px;
    background-color: #ff6b81;
    border-radius: 2px;
}

.more {
    color: #ff6b81;
    font-size: 14px;
}

.more:hover {
    color: #ff4757;
}

.icon-arrow-right:before {
    content: "→";
}

/* 头部样式 */
.header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 24px;
    font-weight: bold;
    color: #ff6b81;
}

.icon-play {
    display: inline-block;
    width: 30px;
    height: 30px;
    background-color: #ff6b81;
    border-radius: 50%;
    margin-right: 10px;
    position: relative;
}

.icon-play:before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-30%, -50%);
    border-style: solid;
    border-width: 8px 0 8px 12px;
    border-color: transparent transparent transparent #fff;
}

.main-nav ul {
    display: flex;
}

.main-nav li {
    margin: 0 15px;
}

.main-nav a {
    font-size: 16px;
    font-weight: 500;
}

.main-nav a:hover {
    color: #ff6b81;
}

.search-box {
    display: flex;
    align-items: center;
    background-color: #f5f5f5;
    border-radius: 20px;
    padding: 5px 15px;
    width: 220px;
}

.search-box input {
    border: none;
    background: transparent;
    padding: 5px;
    width: 100%;
    outline: none;
}

.search-box button {
    background: transparent;
    border: none;
    cursor: pointer;
    color: #999;
}

.icon-search:before {
    content: "🔍";
}

/* 轮播图样式 */
.banner {
    padding: 20px 0;
    background-color: #fff;
}

.banner-wrapper {
    position: relative;
    height: 400px;
    overflow: hidden;
    border-radius: 10px;
}

.banner-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.banner-slide.active {
    opacity: 1;
    z-index: 1;
}

.banner-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: #fff;
}

.banner-info h2 {
    font-size: 28px;
    margin-bottom: 10px;
}

.banner-info p {
    margin-bottom: 15px;
    font-size: 16px;
}

.banner-dots {
    display: flex;
    justify-content: center;
    margin-top: 15px;
}

.banner-dots span {
    width: 10px;
    height: 10px;
    background-color: #ddd;
    border-radius: 50%;
    margin: 0 5px;
    cursor: pointer;
}

.banner-dots span.active {
    background-color: #ff6b81;
}

/* 电视剧卡片样式 */
.drama-list {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -10px;
}

.drama-card {
    width: calc(20% - 20px);
    margin: 10px;
    background-color: #fff;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.drama-card:hover {
    transform: translateY(-5px);
}

.drama-poster {
    position: relative;
    height: 0;
    padding-bottom: 140%;
    overflow: hidden;
}

.drama-poster img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.drama-card:hover .drama-poster img {
    transform: scale(1.05);
}

.score {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(255, 107, 129, 0.9);
    color: #fff;
    padding: 2px 6px;
    border-radius: 3px;
    font-weight: bold;
    font-size: 12px;
}

.tag {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 2px 6px;
    border-radius: 3px;
    font-weight: bold;
    font-size: 12px;
}

.tag.new {
    background-color: #ff6b81;
    color: #fff;
}

.drama-info {
    padding: 10px;
}

.drama-info h3 {
    font-size: 16px;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.actors, .desc, .update {
    font-size: 12px;
    color: #999;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 电视剧网格样式 */
.drama-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* 文章列表样式 */
.article-list {
    background-color: #fff;
    border-radius: 5px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.article-item {
    display: flex;
    padding: 20px 0;
    border-bottom: 1px solid #eee;
}

.article-item:last-child {
    border-bottom: none;
}

.article-thumb {
    width: 200px;
    height: 120px;
    margin-right: 20px;
    flex-shrink: 0;
    border-radius: 5px;
    overflow: hidden;
}

.article-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-content {
    flex: 1;
}

.article-content h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.article-content p {
    color: #666;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-meta {
    display: flex;
    color: #999;
    font-size: 12px;
}

.article-meta span {
    margin-right: 15px;
}

/* APP下载样式 */
.app-download {
    background: linear-gradient(135deg, #ff6b81, #ff4757);
    color: #fff;
    padding: 50px 0;
}

.app-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.app-info {
    flex: 1;
}

.app-info h2 {
    font-size: 28px;
    margin-bottom: 15px;
}

.app-info p {
    font-size: 16px;
    margin-bottom: 30px;
}

.app-features {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.feature {
    display: flex;
    align-items: center;
    width: 50%;
    margin-bottom: 15px;
}

.feature i {
    margin-right: 10px;
    font-size: 20px;
}

.download-btns {
    display: flex;
}

.download-btn {
    display: flex;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    padding: 10px 20px;
    margin-right: 15px;
    color: #fff;
}

.download-btn i {
    font-size: 24px;
    margin-right: 10px;
}

.download-btn:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

.app-qrcode {
    text-align: center;
}

.qrcode-img {
    width: 150px;
    height: 150px;
    background-color: #fff;
    padding: 10px;
    margin: 0 auto 10px;
    border-radius: 5px;
}

/* 页脚样式 */
.footer {
    background-color: #333;
    color: #999;
    padding: 50px 0 20px;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
}

.footer-logo {
    display: flex;
    align-items: center;
    font-size: 24px;
    font-weight: bold;
    color: #fff;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
}

.footer-nav-col {
    width: 25%;
    padding: 0 15px;
}

.footer-nav-col h4 {
    color: #fff;
    margin-bottom: 15px;
    font-size: 16px;
}

.footer-nav-col ul li {
    margin-bottom: 10px;
}

.footer-nav-col ul li a {
    color: #999;
}

.footer-nav-col ul li a:hover {
    color: #ff6b81;
}

.footer-middle {
    padding: 20px 0;
    border-top: 1px solid #444;
    border-bottom: 1px solid #444;
}

.footer-desc {
    margin-bottom: 20px;
}

.footer-links h4 {
    color: #fff;
    margin-bottom: 15px;
    font-size: 16px;
}

.footer-links ul {
    display: flex;
    flex-wrap: wrap;
}

.footer-links ul li {
    margin-right: 15px;
    margin-bottom: 10px;
}

.footer-bottom {
    padding-top: 20px;
    text-align: center;
}

.copyright {
    margin-bottom: 10px;
}

/* 响应式样式 */
@media screen and (max-width: 992px) {
    .drama-card {
        width: calc(25% - 20px);
    }
    
    .drama-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .app-content {
        flex-direction: column;
    }
    
    .app-info {
        margin-bottom: 30px;
    }
}

@media screen and (max-width: 768px) {
    .header .container {
        flex-wrap: wrap;
    }
    
    .logo {
        margin-bottom: 15px;
    }
    
    .main-nav {
        order: 3;
        width: 100%;
        margin-top: 15px;
    }
    
    .main-nav ul {
        flex-wrap: wrap;
    }
    
    .main-nav li {
        margin: 5px;
    }
    
    .drama-card {
        width: calc(33.33% - 20px);
    }
    
    .drama-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .article-item {
        flex-direction: column;
    }
    
    .article-thumb {
        width: 100%;
        height: 180px;
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .footer-nav-col {
        width: 50%;
        margin-bottom: 20px;
    }
}

@media screen and (max-width: 576px) {
    .drama-card {
        width: calc(50% - 20px);
    }
    
    .drama-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-nav-col {
        width: 100%;
    }
}

/* 图标样式 */
.icon-download:before { content: "⬇️"; }
.icon-hd:before { content: "🎞️"; }
.icon-speed:before { content: "⚡"; }
.icon-update:before { content: "🔄"; }
.icon-android:before { content: "📱"; }
.icon-apple:before { content: "🍎"; }
